import { MessageWindow } from "./MessageWindow.js";

let test1 = MessageWindow(document.querySelector(".tempBox"));

test1.setScrollCallBack((index) => {
    console.log(index);
})

test1.addMessagePage();
test1.addMessagePage();
test1.addMessagePage();

let inf = {  img: "./test.png"};

test1.addMessageBlockForPage(0, inf);
test1.addMessageBlockForPage(0, {});
test1.addMessageBlockForPage(0, {});
test1.addMessageBlockForPage(1, {});
test1.addMessageBlockForPage(1, {});
test1.addMessageBlockForPage(1, {});
test1.addMessageBlockForPage(1, {});
test1.addMessageBlockForPage(2, {});
test1.addMessageBlockForPage(2, {});
test1.addMessageBlockForPage(2, {});
test1.addMessageBlockForPage(2, {});

test1.setSize(1);

window.addEventListener("resize", () => {
    test1.setSize(1);
})

test1.addScrollRespon();

test1.setCheckedPage(2);